<!--
 * @Author: guojinxin_hub 1907745233@qq.com
 * @Date: 2024-09-13 15:44:51
 * @LastEditors: guojinxin_hub 1907745233@qq.com
 * @LastEditTime: 2024-10-09 18:04:36
 * @FilePath: \new-yongqing\src\Views\home\CulturalTravel\components\Left.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <Left_box>
    <LeaseTitle imgSrc="enterprises.png">教育教学</LeaseTitle>
    <div style="margin-left: 38px; margin-top: 4px">
      <SubTitle title-text="学生总数量" :width="312" />
      <V3Echarts
        :height="368"
        :width="602"
        :options="Option1()"
        container="Option2"
      ></V3Echarts>
      <div style="margin-top: 56px">
        <SubTitle title-text="学生性别统计" :width="312" />
        <div v-for="item in 3" class="sex_div flex_basis_two">
          <div>
            <div class="sex_div_font"><span>2021 年 性别占比</span></div>
            <div class="sex_quantity">
              <div style="margin-top: 21px">
                <span class="sex_count">总数</span
                ><span class="sex_count_val">15,000</span>
              </div>
              <div class="circle_div_all">
                <div class="circle_div">
                  <div class="circle"></div>
                  <span class="circle_sex">男</span
                  ><span class="circle_sex_val">9,000</span>
                </div>
                <div class="sex_dash">/</div>
                <div class="circle_div">
                  <div class="circle"></div>
                  <span class="circle_sex">女</span
                  ><span class="circle_sex_val">6,000</span>
                </div>
              </div>
            </div>
            <div class="long_strip">
              <div class="long_strip_male"></div>
              <div class="long_strip_female"></div>
            </div>
          </div>
        </div>
      </div>
      <div style="margin-top: 56px">
        <SubTitle title-text="各类型学校统计" :width="312" />
        <V3Echarts
          :height="368"
          :width="602"
          :options="Option2()"
          container="Option2"
        ></V3Echarts>
      </div>
    </div>
  </Left_box>
</template>

<script lang="ts" setup>
import Left_box from '@/components/left_box.vue'
import LeaseTitle from '@/components/Lease_title/index.vue'
import SubTitle from '@/components/SubTitle/SubTitle.vue'
import V3Echarts from '@/components/V3Echarts/index.vue'

import { Option1, Option2 } from './echartsoptions'
</script>

<style lang="scss" scoped>
.flex_basis_two {
  flex-basis: 75%;
}
.sex_div {
  display: grid;
  height: 100%;
  align-items: center;
  width: 100%;
  .sex_div_font {
    margin-top: 32px;
    font-family: DIN;
    font-weight: 400;
    font-size: 21px;
    color: #d3efff;
  }
  .sex_quantity {
    display: flex;
  }
  .sex_count {
    margin-top: 24px;
    font-size: 19px;
    color: #a9cbdf;
    margin-right: 14px;
  }
  .sex_count_val {
    color: #f5fdff;
    font-family: DIN;
    font-weight: 400;
    font-size: 27px;
  }
  .circle_div_all {
    display: flex;
    margin-left: 112px;
    align-items: center;
    .circle {
      background: linear-gradient(90deg, #1665b1, #259cff, #98d0ff);
      border-radius: 2px;
      width: 8px;
      height: 8px;
    }
    .circle_div {
      display: flex;
      align-items: center;
      margin-left: 20px;
      .circle_sex {
        margin-left: 10px;
        font-size: 20px;
        color: #a9cbdf;
      }
      .circle_sex_val {
        font-size: 28px;
        color: #f5fdff;
        margin-left: 10px;
      }
    }
  }
  .long_strip_male {
    margin-top: 20px;
    width: 335px;
    height: 8px;
    background: linear-gradient(90deg, #1665b1, #259cff, #98d0ff);
    transform: skew(-20deg);
  }
  .long_strip {
    display: flex;
    align-items: center;
  }
  .sex_dash {
    color: #bfbfbf;
    opacity: 0.4;
    margin-left: 30px;
    font-size: 30px;
  }
  .long_strip_female {
    margin-top: 20px;
    margin-left: 10px;
    width: 238px;
    height: 8px;
    background: linear-gradient(90deg, #16afb1, #25f2ff, #98f7ff);
    transform: skew(-20deg);
  }
}
</style>
